Optimal. Leaf size=43 \[ 2 E\left (\left .\frac {\pi }{2}+x\right |-1\right )-\frac {2}{3} F\left (\left .\frac {\pi }{2}+x\right |-1\right )+\frac {1}{3} \cos (x) \sqrt {1+\cos ^2(x)} \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3259, 3251,
3256, 3261} \begin {gather*} -\frac {2}{3} F\left (\left .x+\frac {\pi }{2}\right |-1\right )+2 E\left (\left .x+\frac {\pi }{2}\right |-1\right )+\frac {1}{3} \sin (x) \cos (x) \sqrt {\cos ^2(x)+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3251
Rule 3256
Rule 3259
Rule 3261
Rubi steps
\begin {align*} \int \left (1+\cos ^2(x)\right )^{3/2} \, dx &=\frac {1}{3} \cos (x) \sqrt {1+\cos ^2(x)} \sin (x)+\frac {1}{3} \int \frac {4+6 \cos ^2(x)}{\sqrt {1+\cos ^2(x)}} \, dx\\ &=\frac {1}{3} \cos (x) \sqrt {1+\cos ^2(x)} \sin (x)-\frac {2}{3} \int \frac {1}{\sqrt {1+\cos ^2(x)}} \, dx+2 \int \sqrt {1+\cos ^2(x)} \, dx\\ &=2 E\left (\left .\frac {\pi }{2}+x\right |-1\right )-\frac {2}{3} F\left (\left .\frac {\pi }{2}+x\right |-1\right )+\frac {1}{3} \cos (x) \sqrt {1+\cos ^2(x)} \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 39, normalized size = 0.91 \begin {gather*} \frac {24 E\left (x\left |\frac {1}{2}\right .\right )-4 F\left (x\left |\frac {1}{2}\right .\right )+\sqrt {3+\cos (2 x)} \sin (2 x)}{6 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 100 vs. \(2 (49 ) = 98\).
time = 0.49, size = 101, normalized size = 2.35
method | result | size |
default | \(\frac {\sqrt {\left (1+\cos ^{2}\left (x \right )\right ) \left (\sin ^{2}\left (x \right )\right )}\, \left (-\cos \left (x \right ) \left (\sin ^{4}\left (x \right )\right )+2 \sqrt {\frac {1}{2}-\frac {\cos \left (2 x \right )}{2}}\, \sqrt {-\left (\sin ^{2}\left (x \right )\right )+2}\, \EllipticF \left (\cos \left (x \right ), i\right )-6 \sqrt {\frac {1}{2}-\frac {\cos \left (2 x \right )}{2}}\, \sqrt {-\left (\sin ^{2}\left (x \right )\right )+2}\, \EllipticE \left (\cos \left (x \right ), i\right )+2 \left (\sin ^{2}\left (x \right )\right ) \cos \left (x \right )\right )}{3 \sqrt {1-\left (\cos ^{4}\left (x \right )\right )}\, \sin \left (x \right ) \sqrt {1+\cos ^{2}\left (x \right )}}\) | \(101\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.09, size = 10, normalized size = 0.23 \begin {gather*} {\rm integral}\left ({\left (\cos \left (x\right )^{2} + 1\right )}^{\frac {3}{2}}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (\cos ^{2}{\left (x \right )} + 1\right )^{\frac {3}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\left ({\cos \left (x\right )}^2+1\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________